package com.info.provider.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by pengshuo on 2018/1/6 18:18
 * Description:
 * Modified By:
 * Version:
 *
 * @author pengshuo
 */
@RestController
@RequestMapping(value = {"provider"})
public class HelloController {

    @Value("${spring.application.name}")
    private String applicationName;

    @Value("${server.port}")
    private String port;

    @GetMapping(value = {"hello"})
    public String hello(){
        return "hello welcome access " + applicationName  + ":" + port;
    }
}
